<template>
  <div class="box">{{ 1+1 }}</div>
  <button @click="add">添加</button>
</template>
<script>
import NProgress  from 'nprogress'
import 'nprogress/nprogress.css'
import store from '../../store/index.js'
console.log(store);
export default{
  data(){
    return {
      a : 1,
      b : 2
    }
  },
  methods : {
    add(){
      NProgress.start();
      setTimeout(() => {
        NProgress.done();
      },2e3);
      console.log(`helloworld`);
    }
  },
}
</script>
<style type="text/css">
.box{
  width:100px;
  height:100px;
  border:1px solid #000;
}
</style>
